from django.urls import path
from . import views

urlpatterns = [
    path('orders/api/', views.OrderViewSet.as_view({'get': 'list', 'post': 'create'})),
    path('orders/api/<int:pk>/', views.OrderViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),
    path('payment/api/', views.PaymentViewSet.as_view({'get': 'list', 'post': 'create'})),
    path('payment/api/<int:pk>', views.PaymentViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'}))
]